﻿


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CommonTagTime.ModelObject
{
    public class Distributor
    {
        //------------------------------------------------
        //VARIABLE
        //------------------------------------------------
        private int _TotalRecords;
        private int _CurrentPage;
        private int _PageSize;
        private string _OrderBy;
        private string _OrderDirection;
        private string _Condition;
        private int _DistributorID;
        private string _CountryCode;
        private string _CompanyName;
        private string _ContactName;
        private string _Address1;
        private string _Address2;
        private string _StateCode;
        private string _City;
        private string _ZipCode;
        private string _Province;
        private string _Phone;
        private string _Fax;
        private string _Email;
        private string _Note;
        private Boolean _IsActive;

     

        //------------------------------------------------
        //PROPERTY
        //------------------------------------------------
        public int DistributorID
        {
            get { return _DistributorID; }
            set { _DistributorID = value; }
        }
        public string StateCode
        {
            get { return _StateCode; }
            set { _StateCode = value; }
        }
        public string CompanyName
        {
            get { return _CompanyName; }
            set { _CompanyName = value; }
        }
        public string CountryCode
        {
            get { return _CountryCode; }
            set { _CountryCode = value; }
        }

        public string ContactName
        {
            get { return _ContactName; }
            set { _ContactName = value; }
        }
        public string Address1
        {
            get { return _Address1; }
            set { _Address1 = value; }
        }
        public string Address2
        {
            get { return _Address2; }
            set { _Address2 = value; }
        }
        public string City
        {
            get { return _City; }
            set { _City = value; }
        }
        public string ZipCode
        {
            get { return _ZipCode; }
            set { _ZipCode = value; }
        }


        public string Email
        {
            get { return _Email; }
            set { _Email = value; }
        }
        public string Note
        {
            get { return _Note; }
            set { _Note = value; }
        }
        public Boolean IsActive
        {
            get { return _IsActive; }
            set { _IsActive = value; }
        }


        public string Province
        {
            get { return _Province; }
            set { _Province = value; }
        }
        public string Phone
        {
            get { return _Phone; }
            set { _Phone = value; }
        }
        public string Fax
        {
            get { return _Fax; }
            set { _Fax = value; }
        }

        public int TotalRecords
        {
            get { return _TotalRecords; }
            set { _TotalRecords = value; }
        }

        public string OrderBy
        {
            get { return _OrderBy; }
            set { _OrderBy = value; }
        }

        public string OrderDirection
        {
            get { return _OrderDirection; }
            set { _OrderDirection = value; }
        }

        public int CurrentPage
        {
            get { return _CurrentPage; }
            set { _CurrentPage = value; }
        }

        public int PageSize
        {
            get { return _PageSize; }
            set { _PageSize = value; }
        }
        public string Condition
        {
            get { return _Condition; }
            set { _Condition = value; }
        }
        public Distributor()
        {
            _CurrentPage = 0;
            _PageSize = 0;
            _TotalRecords = 0;
            _Condition = string.Empty;
            _DistributorID = int.MinValue;
            _Address1 = string.Empty;
            _Address2 = string.Empty;
            _City = string.Empty;
            _CompanyName = string.Empty;
            _ContactName = string.Empty;
            _CountryCode = string.Empty;
            _Email = string.Empty;
            _Fax = string.Empty;
            _IsActive = false;
            _Note = string.Empty;
            _OrderBy = "DistributorID";
            _OrderDirection = "ASC";
            _Phone = string.Empty;
            _Province = string.Empty;            
            _StateCode = string.Empty;
            _ZipCode = string.Empty;
        }
    }

    public class DistributorCollection : List<Distributor>
    { }
}


